﻿using System;
using System.Windows;

namespace ProjectEuler.UI
{
    public static class ProblemStatusImages
    {
        public static readonly ResourceKey None = MakeKey(ProblemStatus.None);
        public static readonly ResourceKey Executing = MakeKey(ProblemStatus.Executing);
        public static readonly ResourceKey Failed = MakeKey(ProblemStatus.Failed);
        public static readonly ResourceKey Correct = MakeKey(ProblemStatus.Correct);
        public static readonly ResourceKey Inconclusive = MakeKey(ProblemStatus.Inconclusive);
        public static readonly ResourceKey Wrong = MakeKey(ProblemStatus.Wrong);

        internal static ResourceKey MakeKey(Object status)
        {
            return new ComponentResourceKey(typeof(ProblemStatusImages), status);
        }
    }
}
